package com.eas.biz.dao.examDetail.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.examDetail.dataobject.ExamDetailDO;
import com.eas.biz.dao.examDetail.dataobject.ExamDetailQuery;
import com.eas.biz.dao.examDetail.interfaces.ExamDetailDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("examDetailDao")
public class ExamDetailDaoImpl extends GenericDaoImpl<ExamDetailDO> implements ExamDetailDao {

    public ExamDetailDO selectById(long id) {
        return selectById("ExamDetail.selectById", id);
    }

    public long insert(ExamDetailDO exam) {
        return insert("ExamDetail.insert", exam);
    }

    public int deleteById(long id) {
        return deleteById("ExamDetail.deleteById", id);
    }

    public int update(ExamDetailDO exam) {
        return update("ExamDetail.update", exam);
    }

    public List<ExamDetailDO> selectByQuery(BaseQuery query) {
        return selectByQuery("ExamDetail.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("ExamDetail.countByQuery", query);
    }

    public int deleteByQuery(ExamDetailQuery query) {
        return deleteByQuery("ExamDetail.deleteByQuery", query);
    }
}
